<template>
  <div id="app">
    <div class="header">
      <el-button @click="use('full')">全部使用</el-button>
      <el-button @click="use('withoutTree')">去掉树</el-button>
      <el-button @click="use('bimface')">bimface</el-button>
    </div>
    <div class="main">
      <router-view />
    </div>
  </div>
</template>

<script>
export default {
  name: 'App',
  components: {},
  methods: {
    use(type) {
      if (type === 'full') {
        this.$router.push({ path: '/full' })
      } else if (type === 'withoutTree') {
        this.$router.push({ path: '/withoutTree' })
      } else if (type === 'bimface') {
        this.$router.push({ path: '/bimface' })
      }
    }
  }
}
</script>

<style lang="scss">
html,
body {
  margin: 0;
  padding: 0;
}
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  .header {
    margin-top: 8px;
    height: 60px;
  }
  .main {
    flex: 1;
  }
}
</style>
